Skip to main content

PositionIndex

PositionIndex[list] gives an association between unique elements in list and the positions at which they occur.

PositionIndex[assoc] gives an association whose keys are the distinct values in assoc, and whose values are lists of the keys with which they are associated.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.